home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Startup Ex 1.xpl < prev    next >
Text File  |  1998-08-08  |  1KB  |  45 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\Startup"
  5. "NAME"="Execute AutoExec.bat"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Execute AutoExec.bat"
  8. "DESCRIPTION 1"="Activate "Execute AutoExec.bat" if this file should be executed on startup."
  9. "DESCRIPTION 2"="Note: AUTOEXEC.NT and CONFIG.NT are always executed!"
  10. "AUTHOR"="Xteq Systems"
  11. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  12. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  13. "COMMENT 2"="Version 1.44"
  14.  
  15.  
  16. sP="HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\"
  17. sv1="ParseAutoexec" 'string
  18. Sub Plugin_Initialize 
  19.  if regpathexists(sp) then
  20.  
  21.   i=RegReadValue(sp&sv1)
  22.   if i=1 then SetUIElement 1,true
  23.  
  24.  else
  25.   Disable
  26.  end if
  27. End Sub
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  b=GetUIElement(1) 
  34.  if b=true then
  35.   Call RegWriteValue(sp & sv1,"1",1)
  36.  else
  37.   Call RegWriteValue(sp & sv1,"0",1)
  38.  end if
  39.  
  40.  
  41. End Sub
  42.  
  43. Sub Plugin_Terminate 
  44. End Sub
  45.